<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/6/19
 * Time: 15:09
 */
namespace App\Admin\Models;
use Illuminate\Database\Eloquent\Model;

class AdminUser extends Model {

    protected $table = 'admin';
    protected $fillable = ['name','role','password','state'];

    public static function judgeLogin($name,$pwd){
        $res = self::where(['name'=>$name,'password'=>$pwd])->first();
        return $res;
    }
}